using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._ToRaster
{
    /// <summary>
    /// <para>Float to Raster</para>
    /// <para>Converts a file of binary floating-point values representing raster data to a raster dataset.</para>
    /// <para>将表示栅格数据的二进制浮点值文件转换为栅格数据集。</para>
    /// </summary>    
    [DisplayName("Float to Raster")]
    public class FloatToRaster : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FloatToRaster()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_float_file">
        /// <para>Input floating point raster file</para>
        /// <para><xdoc>
        ///   <para>The input floating-point binary file.</para>
        ///   <para>The file must have a .flt extension. There must be a header file in association with the floating-point binary file, with a .hdr extension.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入浮点二进制文件。</para>
        ///   <para>该文件必须具有 .flt 扩展名。必须有一个与浮点二进制文件关联的头文件，扩展名为 .hdr。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster dataset to be created.</para>
        ///   <para>If the output raster will not be saved to a geodatabase, specify .tif for TIFF file format, .CRF for CRF file format, .img for ERDAS IMAGINE file format, or no extension for Esri Grid raster format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要创建的输出栅格数据集。</para>
        ///   <para>如果输出栅格不会保存到地理数据库中，请为 TIFF 文件格式指定 .tif 。CRF 表示 CRF 文件格式，.img 表示 ERDAS IMAGINE 文件格式，或者 Esri Grid 栅格格式没有扩展名。</para>
        /// </xdoc></para>
        /// </param>
        public FloatToRaster(object _in_float_file, object _out_raster)
        {
            this._in_float_file = _in_float_file;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Float to Raster";

        public override string CallName => "conversion.FloatToRaster";

        public override List<string> AcceptEnvironments => ["autoCommit", "compression", "configKeyword", "pyramid", "scratchWorkspace", "tileSize"];

        public override object[] ParameterInfo => [_in_float_file, _out_raster];

        /// <summary>
        /// <para>Input floating point raster file</para>
        /// <para><xdoc>
        ///   <para>The input floating-point binary file.</para>
        ///   <para>The file must have a .flt extension. There must be a header file in association with the floating-point binary file, with a .hdr extension.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入浮点二进制文件。</para>
        ///   <para>该文件必须具有 .flt 扩展名。必须有一个与浮点二进制文件关联的头文件，扩展名为 .hdr。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input floating point raster file")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_float_file { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster dataset to be created.</para>
        ///   <para>If the output raster will not be saved to a geodatabase, specify .tif for TIFF file format, .CRF for CRF file format, .img for ERDAS IMAGINE file format, or no extension for Esri Grid raster format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要创建的输出栅格数据集。</para>
        ///   <para>如果输出栅格不会保存到地理数据库中，请为 TIFF 文件格式指定 .tif 。CRF 表示 CRF 文件格式，.img 表示 ERDAS IMAGINE 文件格式，或者 Esri Grid 栅格格式没有扩展名。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public FloatToRaster SetEnv(int? autoCommit = null, object compression = null, object configKeyword = null, object pyramid = null, object scratchWorkspace = null, double[] tileSize = null)
        {
            base.SetEnv(autoCommit: autoCommit, compression: compression, configKeyword: configKeyword, pyramid: pyramid, scratchWorkspace: scratchWorkspace, tileSize: tileSize);
            return this;
        }

    }

}